﻿<UserControl x:Class="NodeView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:SticBud="clr-namespace:RDdotNet.StickyBuddy.Controls"  Width="310" Height="532">
    <Border Margin="3" Grid.Row="0" CornerRadius="5" BorderBrush="DarkOrange" BorderThickness="2">
    <Grid Margin="3" Width="Auto" Height="Auto">
        <Grid.RowDefinitions>
            <RowDefinition Height="50" />
            <RowDefinition Height="150" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Border Margin="0,0,0,3" Grid.Row="0" CornerRadius="5" BorderBrush="LightBlue" BorderThickness="2">
            <StackPanel Grid.Row="0">
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="{Binding Path=TreeType, Mode=OneWay}" />
                    <TextBlock Text=": " />
                    <TextBlock Text="{Binding Path=Name, Mode=OneWay}" />
                </StackPanel>                
            <TextBlock Text="{Binding Path=Path, Mode=OneWay}" />
        </StackPanel>
        </Border>
            <Border Margin="0,0,0,3" Grid.Row="1" CornerRadius="5" BorderBrush="LightBlue" BorderThickness="2" Width="Auto" Height="Auto">
                <ScrollViewer>
                <ItemsControl Name="ux_ControlListTest" HorizontalAlignment="Left" VerticalAlignment="Top">
                    <ItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <UniformGrid IsItemsHost="True" />
                        </ItemsPanelTemplate>
                    </ItemsControl.ItemsPanel>
                    <ItemsControl.ItemTemplate>
                        <DataTemplate>
                                <SticBud:WitView DataContext="{Binding}" />
                            </DataTemplate>
                    </ItemsControl.ItemTemplate>
                </ItemsControl>
                    </ScrollViewer>
            </Border>
            <Border Grid.Row="2" CornerRadius="5" BorderBrush="LightBlue" BorderThickness="2" Width="Auto" Height="Auto">
     
                    <Grid Name="ux_GridSubNodes" Width="Auto" Height="Auto" HorizontalAlignment="Left" VerticalAlignment="Top">


            </Grid>
                  
        </Border>
    </Grid>
        </Border>
</UserControl>
